package com.my.mymafengwo.bean;

import com.lidroid.xutils.db.annotation.Column;
import com.lidroid.xutils.db.annotation.Id;
import com.lidroid.xutils.db.annotation.Table;

import java.util.List;

/**
 * ***********************************************
 * author:ljz
 * time:2015/12/3 17:57
 * name:搜索热门旅游景点的页面的实体类
 * step:
 * ***********************************************
 */
public class SearchData {

    /**
     * rc : 0
     * rm :
     * data : {"list":[{"name":"国内热门","icon":"http://file107.mafengwo.net/s9/M00/60/92/wKgBs1Y5oeeAUfE-AAAFcWjb59Q117.png","list":[{"id":12684,"name":"台湾","jump_url":"http://m.mafengwo.cn/nb/public/sharejump.php?type=10&id=12684"},{"id":10068,"name":"哈尔滨","jump_url":"http://m.mafengwo.cn/nb/public/sharejump.php?type=10&id=10068"},{"id":10189,"name":"香港","jump_url":"http://m.mafengwo.cn/nb/public/sharejump.php?type=10&id=10189"},{"id":10030,"name":"三亚","jump_url":"http://m.mafengwo.cn/nb/public/sharejump.php?type=10&id=10030"},{"id":10132,"name":"厦门","jump_url":"http://m.mafengwo.cn/nb/public/sharejump.php?type=10&id=10132"},{"id":10195,"name":"西安","jump_url":"http://m.mafengwo.cn/nb/public/sharejump.php?type=10&id=10195"},{"id":10099,"name":"上海","jump_url":"http://m.mafengwo.cn/nb/public/sharejump.php?type=10&id=10099"},{"id":10035,"name":"成都","jump_url":"http://m.mafengwo.cn/nb/public/sharejump.php?type=10&id=10035"},{"id":10208,"name":"重庆","jump_url":"http://m.mafengwo.cn/nb/public/sharejump.php?type=10&id=10208"},{"id":10065,"name":"北京","jump_url":"http://m.mafengwo.cn/nb/public/sharejump.php?type=10&id=10065"}]},{"name":"国际热门","icon":"http://file105.mafengwo.net/s9/M00/60/72/wKgBs1Y5oc2AWAGUAAAG3hYy0lw500.png","list":[{"id":10183,"name":"日本","jump_url":"http://m.mafengwo.cn/nb/public/sharejump.php?type=10&id=10183"},{"id":10083,"name":"泰国","jump_url":"http://m.mafengwo.cn/nb/public/sharejump.php?type=10&id=10083"},{"id":15284,"name":"清迈","jump_url":"http://m.mafengwo.cn/nb/public/sharejump.php?type=10&id=15284"},{"id":11047,"name":"普吉岛","jump_url":"http://m.mafengwo.cn/nb/public/sharejump.php?type=10&id=11047"},{"id":10460,"name":"巴厘岛","jump_url":"http://m.mafengwo.cn/nb/public/sharejump.php?type=10&id=10460"},{"id":10130,"name":"首尔","jump_url":"http://m.mafengwo.cn/nb/public/sharejump.php?type=10&id=10130"},{"id":11045,"name":"曼谷","jump_url":"http://m.mafengwo.cn/nb/public/sharejump.php?type=10&id=11045"},{"id":10754,"name":"新加坡","jump_url":"http://m.mafengwo.cn/nb/public/sharejump.php?type=10&id=10754"},{"id":10184,"name":"韩国","jump_url":"http://m.mafengwo.cn/nb/public/sharejump.php?type=10&id=10184"},{"id":10222,"name":"东京","jump_url":"http://m.mafengwo.cn/nb/public/sharejump.php?type=10&id=10222"}]}]}
     */

    private int rc;
    private String rm;
    private DataEntity data;

    public void setRc(int rc) {
        this.rc = rc;
    }

    public void setRm(String rm) {
        this.rm = rm;
    }

    public void setData(DataEntity data) {
        this.data = data;
    }

    public int getRc() {
        return rc;
    }

    public String getRm() {
        return rm;
    }

    public DataEntity getData() {
        return data;
    }

    public static class DataEntity {
        /**
         * name : 国内热门
         * icon : http://file107.mafengwo.net/s9/M00/60/92/wKgBs1Y5oeeAUfE-AAAFcWjb59Q117.png
         * list : [{"id":12684,"name":"台湾","jump_url":"http://m.mafengwo.cn/nb/public/sharejump.php?type=10&id=12684"},{"id":10068,"name":"哈尔滨","jump_url":"http://m.mafengwo.cn/nb/public/sharejump.php?type=10&id=10068"},{"id":10189,"name":"香港","jump_url":"http://m.mafengwo.cn/nb/public/sharejump.php?type=10&id=10189"},{"id":10030,"name":"三亚","jump_url":"http://m.mafengwo.cn/nb/public/sharejump.php?type=10&id=10030"},{"id":10132,"name":"厦门","jump_url":"http://m.mafengwo.cn/nb/public/sharejump.php?type=10&id=10132"},{"id":10195,"name":"西安","jump_url":"http://m.mafengwo.cn/nb/public/sharejump.php?type=10&id=10195"},{"id":10099,"name":"上海","jump_url":"http://m.mafengwo.cn/nb/public/sharejump.php?type=10&id=10099"},{"id":10035,"name":"成都","jump_url":"http://m.mafengwo.cn/nb/public/sharejump.php?type=10&id=10035"},{"id":10208,"name":"重庆","jump_url":"http://m.mafengwo.cn/nb/public/sharejump.php?type=10&id=10208"},{"id":10065,"name":"北京","jump_url":"http://m.mafengwo.cn/nb/public/sharejump.php?type=10&id=10065"}]
         */

        private List<ListEntity> list;

        public void setList(List<ListEntity> list) {
            this.list = list;
        }

        public List<ListEntity> getList() {
            return list;
        }

        public static class ListEntity {
            private String name;
            private String icon;
            /**
             * id : 12684
             * name : 台湾
             * jump_url : http://m.mafengwo.cn/nb/public/sharejump.php?type=10&id=12684
             */

            private List<ListEntity2> list;

            public void setName(String name) {
                this.name = name;
            }

            public void setIcon(String icon) {
                this.icon = icon;
            }

            public void setList(List<ListEntity2> list) {
                this.list = list;
            }

            public String getName() {
                return name;
            }

            public String getIcon() {
                return icon;
            }

            public List<ListEntity2> getList() {
                return list;
            }

            @Table(name="ListEntity2")
            public static class ListEntity2{
                @Id(column="_id")
                private int id;
                @Column(column="name")
                private String name;
                @Column(column="jump_url")
                private String jump_url;
                public ListEntity2() {
                }
                public ListEntity2( String name, String jump_url) {
                    this.name = name;
                    this.jump_url = jump_url;
                }
                public void setId(int id) {
                    this.id = id;
                }

                public void setName(String name) {
                    this.name = name;
                }

                public void setJump_url(String jump_url) {
                    this.jump_url = jump_url;
                }

                public int getId() {
                    return id;
                }

                public String getName() {
                    return name;
                }

                public String getJump_url() {
                    return jump_url;
                }
            }
        }
    }
}
